package com.jsg.sl651.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 功能码
 */
@AllArgsConstructor
@Getter
public enum FunctionCode {
    LINK_MAINTENANCE(0x2F, "链路维持报", "链路维持报"),
    TEST_MESSAGE(0x30, "测试报", "测试报"),
    UNIFORM_PERIOD_HYDROLOGICAL_INFO(0x31, "均匀时段水文信息报", "均匀时段水文信息报"),
    TELEMETRY_STATION_FIXED_REPORT(0x32, "遥测站定时报", "遥测站定时报"),
    TELEMETRY_STATION_ADDITIONAL_REPORT(0x33, "遥测站加报报", "遥测站加报报"),
    TELEMETRY_STATION_HOURLY_REPORT(0x34, "遥测站小时报", "遥测站小时报"),
    TELEMETRY_STATION_MANUAL_SETTING_REPORT(0x35, "遥测站人工置数报", "遥测站人工置数报"),
    TELEMETRY_STATION_IMAGE_REPORT(0x36, "遥测站图片报或中心站查询遥测站图片采集信息", "遥测站图片报或中心站查询遥测站图片采集信息"),
    CENTER_STATION_QUERY_TELEMETRY_REALTIME_DATA(0x37, "中心站查询遥测站实时数据", "中心站查询遥测站实时数据"),
    CENTER_STATION_QUERY_TELEMETRY_PERIOD_DATA(0x38, "中心站查询遥测站时段数据", "中心站查询遥测站时段数据"),
    CENTER_STATION_QUERY_TELEMETRY_MANUAL_SETTING(0x39, "中心站查询遥测站人工置数", "中心站查询遥测站人工置数"),
    CENTER_STATION_QUERY_TELEMETRY_SPECIFIED_ELEMENT_DATA(0x3A, "中心站查询逊测站指定要素数据", "中心站查询逊测站指定要素数据"),
    CENTER_STATION_MODIFY_TELEMETRY_BASIC_CONFIG(0x40, "中心站修改遥测站基本配置表", "中心站修改遥测站基本配置表"),
    CENTER_STATION_READ_TELEMETRY_BASIC_CONFIG(0x41, "中心站读取遥测站基本配置表/遥测站自报基本配置表", "中心站读取遥测站基本配置表/遥测站自报基本配置表"),
    CENTER_STATION_MODIFY_TELEMETRY_RUNTIME_CONFIG(0x42, "中心站修改遥测站运行参数配置表", "中心站修改遥测站运行参数配置表"),
    CENTER_STATION_READ_TELEMETRY_RUNTIME_CONFIG(0x43, "中心站读取遥测站运行参数配置表/遥测站自报运行参数配置表", "中心站读取遥测站运行参数配置表/遥测站自报运行参数配置表"),
    QUERY_PUMP_MOTOR_REALTIME_DATA(0x44, "查询水泵电机实时工作数据", "查询水泵电机实时工作数据"),
    QUERY_TELEMETRY_TERMINAL_SOFTWARE_VERSION(0x45, "查询遥测终端软件版本", "查询遥测终端软件版本"),
    QUERY_TELEMETRY_STATION_STATUS_AND_ALARM(0x46, "查询遥测站状态和报警信息", "查询遥测站状态和报警信息"),
    INITIALIZE_SOLID_STATE_STORAGE_DATA(0x47, "初始化固态存储数据", "初始化固态存储数据"),
    RESTORE_TERMINAL_FACTORY_SETTINGS(0x48, "恢复终端出厂设置", "恢复终端出厂设置"),
    MODIFY_PASSWORD(0x49, "修改密码", "修改密码"),
    SET_TELEMETRY_STATION_CLOCK(0x4A, "设置遥测站时钟", "设置遥测站时钟"),
    SET_TELEMETRY_TERMINAL_IC_CARD_STATUS(0x4B, "设置遐测终端 IC卡状态", "设置遐测终端 IC卡状态"),
    CONTROL_PUMP_SWITCH_COMMAND(0x4C, "控制水泵开关命令/水泵状态信息自报", "控制水泵开关命令/水泵状态信息自报"),
    CONTROL_VALVE_SWITCH_COMMAND(0x4D, "控制阀门开关命令/阀门状态信息自报", "控制阀门开关命令/阀门状态信息自报"),
    CONTROL_GATE_SWITCH_COMMAND(0x4E, "控制闸门开关命令/闸门状态信息自报", "控制闸门开关命令/闸门状态信息自报"),
    WATER_QUOTA_CONTROL_COMMAND(0x4F, "水量定值控制命令", "水量定值控制命令"),
    CENTER_STATION_QUERY_TELEMETRY_EVENT_RECORD(0x50, "中心站查询遥测站事件记录", "中心站查询遥测站事件记录"),
    CENTER_STATION_QUERY_TELEMETRY_TERMINAL_CLOCK(0x51, "中心站查询遐测站时钟", "中心站查询遐测站时钟");
    private final int code;
    private final String name;
    private final String desc;

}
